#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
#include <assert.h>
#include<string>

#include "string.h"

void string_test_wjy::test_string7()
{
	string s1("hello");
	/*s1.insert(0, 'x');
	s1.insert(3, "---");
	cout << s1.c_str() << endl;
	s1.push_back('1');
	cout << s1.c_str() << endl;
	s1.append("hahahaha");
	cout << s1.c_str() << endl;
	s1.erase(3, 2);*/
	s1.insert(0, "22");
	cout << s1.c_str() << endl;
}

void string_test_wjy::test_string8()
{
	//"abcd"  "abcd"   false
	//"abcd"  "abcde"  true
	//"abcde" "abcd"   false
	string s1("abcd");
	string s2("abcd");
	string s3("abcd");
	string s4("abcde");
	string s5("abcde");
	string s6("abcd");

	/*cout << (s1 < s2) << endl;
	cout << (s3 < s4) << endl;
	cout << (s5 < s6) << endl;*/

	cout << (s1 >= s2) << endl;
	cout << (s3 >= s4) << endl;
	cout << (s5 == s6) << endl;
}

void string_test_wjy::test_string9()
{
	string s1;
	cin >> s1;
	cout << s1 << endl;
	string s2("hello world");
	cout << s2 << endl;

	/*std::string s1("hello");
	s1 += '\0';
	s1 += "world";
	cout << s1 << endl;
	cout << s1.c_str() << endl;*/
}


int main()
{
	//string_test_wjy::test_string1();
	//string_test_wjy::test_string2();
	//string_test_wjy::test_string4();
	string_test_wjy::test_string9();

	/*std::string s1;
	std::cout << s1.c_str() << std::endl;*/


	return 0;
}
